#-*-coding:utf-8-*-
from HA_Menu import hOpen,hFile,hEdit
from HA_Node import hNode
from HA_Effects.Pyro import hPyro
from HA_NetworkEditor import hNetworkEditor

class HA(object):
    def __init__(self):
        super(HA,self).__init__()

    File=hFile.File()
    Edit=hEdit.Edit()

    NetworkEditor=hNetworkEditor.NetworkEditor()


#Node
    Node=hNode.Node()






#Pyro

    Pyro=hPyro.Pyro()

# ###file

#     def basename(self):
#         hfile.basename()
#     def hipName(self):
#         hfile.hipName()
#     def hipPath(self):
#         hfile.hipPath()
#     def hasUnsavedChanges(self):
#         hfile.hasUnsavedChanges()
#
#     def loadFile(self,filePath):
#         hfile.loadFile(filePath)
#
#     def save(self,hipPath):
#         hfile.savefile(hipPath)
#     def setHipName(self,hipName):
#         hfile.saveFile(hipName)
#
#     def saveAsBackup(self):
#         hfile.saveAsBackup()
#
#     def newHip(self):
#         hfile.newHip()
#
#     def merge(self,hipName):
#         hfile.merge(hipName)
#     def mergedSameNodes(self,hipName):
#         hfile.mergedSameNodes(hipName)
#
#     def isLoadingHipFile(self):
#         hfile.isLoadingHipFile()
#
#     def isShuttingDown(self):
#         hfile.isShuttingDown()
#
#     def saveMode(self):
#         hfile.saveMode()
#
#     def setSaveMode(self,saveMode):
#         hfile.setSaveMode(saveMode)
#
#     def importFBX(self, fbxPath):
#         hfile.importFBX(fbxPath)
#
#     def findFile(self,hipName):
#         hfile.findFile(hipName)
#
#     def hipDirectoryPath(self):
#         hfile.hipDirectoryPath()
# ### open
#     def statHoudini(self):
#         hopen.startHoudini()
#     def openHoudini(self,houdiniPath):
#         hopen.openHoudini(houdiniPath)
#
#     def openDisk(self,diskPath):
#         hopen.openDisk(diskPath)






###

if __name__ == '__main__':
    ha=HA()


# Menu
    #ha.File.saveAsText('path')
    #ha.Edit.cut(['nodes'])
    #ha.Edit.copy()
    #ha.Edit.Preferences.General_user_Interface.getDrawLinesSmoothly()
    #ha.Edit.Preferences.General_user_Interface.setPlaybarUI(0)
    #print  (ha.Edit.Preferences.Animation.setInitialSegment_RotationFunction.__doc__)




#Node
    #ha.Node.createNode('A','A')


#Pyro
    ha.Pyro.createFireBall()




###file
    #ha.basename()#返回当前hip文件的基本名称
    #ha.hipname()#返回当前hip文件的绝对路径名称
    #ha.hasUnsavedChanges()#检测该hip文件是否更新过
    #ha.save('hippath')#保存hip文件
    #ha.setHipName('haha')#设置hip文件名称
    #ha.newHip()#new一个houdini
    #ha.merge('../ti.hip')#合并一个hip文件
    #ha.mergedSameNodes('../t1.hip')#返回merge方式以递归方式检测出的所有重名的节点
    #ha.isLoadingHipFile()#检测当前houdini是否正在载入hip文件
    #ha.isShuttingDown()#检测当前houdini是否崩溃了
    #ha.saveMode()#返回当前hip文件保存类型
    #ha.setSaveMode('xxxx')#设置当前hip文件保存类型
    #ha.importFBX('fbx')#导入FBX文件
    #ha.hipDirectoryPath()#返回当前hip文件的文件夹路径
    #ha.findFile('haha')#查找指定名称的hip文件

###open
    # ha.openHoudini('path') #通过指定路径打开houdini
    # ha.statHoudini()#通过环境变量来打开houdini
    # ha.opendisk('C:')#打开盘符或者文件夹
    #ha.loadfile('aaa')#打开hip文件，需要hip的绝对路径
